-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple grpc dial options for agent -> server connection #153
Support multiple grpc dial options for agent -> server connection #153
Conversation
I sit to implementing keepalive for the agent, and now I understand your change ;) |
pkg/agent/clientset.go
Outdated
@@ -110,7 +110,7 @@ type ClientSetConfig struct { | |||
AgentID string | |||
SyncInterval time.Duration | |||
ProbeInterval time.Duration | |||
DialOption grpc.DialOption | |||
DialOption []grpc.DialOption |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here? Public so requires a bit more thought.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be no problem renaming this since the agent is a standalone binary and is not imported anywhere.
822a3ab
to
ba87710
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako, Jefftree The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
grpc supports multiple dial options but currently agent -> server dials (cmd/agent/main.go) only supports 1 dial option as a parameter. Refactor the code to support multiple.
This might be helpful for #152
/assign @cheftako